/* 
 * Copyright [2018] [Alex/libo(liboms@hotmail.com)]
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.hyts.schedule.executor.base;

import java.util.Date;
import java.util.List;
import java.util.Map;

/** 
 * @title AbstractJobManager.java  
 * @package com.hyts.schedule.quartz  
 * @description TODO  
 * @see TODO
 * @author libo/Alex
 * @email liboms@hotmail.com/liboware@163.com  
 * @date 2018年5月16日 
 * @version V1.0 
 */
public interface AbstractJobManager<J,T> {

	/**  
	 * <b>addJob</b>
	 * <p>添加工作调度任务</p>
	 * @param job 工作任务
	 * @param trigger 触发器
	 * @return 
	 */ 
	Date addJob(J job,T trigger);
	
	/**  
	 * <b>addJob</b>
	 * <p>添加工作调度任务</p>
	 * @param trigger
	 * @return 返回时间
	 */ 
	Date addJob(T trigger);
	
	/**  
	 * <b>TODO(方法功能的描述)</b>
	 * <p>TODO(这里用一句话描述这个方法的作用)</p>
	 * @param triggerAndJobs
	 * @exception
	 */ 
	void addJobs(Map<J,List<T>> triggerAndJobs);

}
